package com.itheima.stock.mapper;

import com.itheima.stock.common.domain.StockBlockRtInfoDomain;
import com.itheima.stock.pojo.StockBlockRtInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author byzhao
* @description 针对表【stock_block_rt_info(股票板块详情信息表)】的数据库操作Mapper
* @createDate 2022-10-01 20:05:23
* @Entity com.itheima.stock.pojo.StockBlockRtInfo
*/
@Mapper
public interface StockBlockRtInfoMapper {
    /**
     * 板块指数 沪深两市板块分时行情数据查询，以交易时间和交易总金额降序查询，取前10条数据
     * @return
     */
    List<StockBlockRtInfoDomain> sectorAllLimit();

    /**
     * 板块信息批量插入
     * @param list
     */
    void insertBatch(@Param("list") List<StockBlockRtInfo> list);
}




